package com.lovo.middleman.controller;

import com.lovo.middleman.bean.SellDetailedBean;
import com.lovo.middleman.service.ISellDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sellDetailed")
public class SellDetailedController {

    @Autowired
    ISellDetailedService iSellDetailedService;

    @RequestMapping("/getSellDetailedBeanById")
    public List<SellDetailedBean> getSellDetailedBeanById(int sellDetailedId){
        return iSellDetailedService.queryBySellId(sellDetailedId);
    }


}
